<div class="wrapper-md ng-scope">
 <div class="row" novalidate>
<div class="col-md-12">
<div class="panel panel-default">
    <div class="panel-body">
        <div class="form-group">
           <div class="col-xs-6">
            <div class="col-sm-6">
            
                <ui-select ng-model="searchform.place_code" theme="bootstrap">
                  <ui-select-match placeholder="请选择一个用户">
                    {{$select.selected.name}}
                      <!--<option value=""> --全部-- </option>  -->
                  </ui-select-match>
                  <ui-select-choices repeat="item.code as item in viewarr | filter: $select.search">
                    <span ng-bind-html="item.name | highlight: $select.search"></span>
                  </ui-select-choices>
                </ui-select>
              </div>
                <!--<label>景区</label>&nbsp;&nbsp;-->
                <!--<select class="form-control" ng-model="searchform.place_code" 
                  ng-options="view.code as view.name for view in viewarr"
                >
                </select>-->
            </div>
            <div class="col-xs-3 text-right">
                      <button type="button" class="btn btn-success search" ng-click="load()">立即搜索</button>

            </div>
           
        </div>
    </div>
</div>
</div>
</div>

<div class="wrapper-md ng-scope">
 <div class="row" novalidate>

  <!--表结构 -->
  <div class="col-md-12">
    <div class="panel panel-info" ng-repeat=" user in objs track by $index">

             <div class="panel-heading font-bold">{{user.viewname}}</div>
            <div id="myTabContent" class="tab-content">
                  <div class="tab-pane fade in active" id="home">
                           <div class="row wrapper" >
                             
                                <div class="col-sm-3">
                                    <div class="input-group">
                                        <span class="input-group-addon" id="basic-addon1">风险点名称</span>
                                        <input type="text" class="form-control" ng-model="gename" aria-describedby="basic-addon1">
                                    </div>
                                </div>
                                <div class="col-sm-3">
                      
                                       <div class="input-group">
                                               <span class="input-group-addon" id="basic-addon1">检验周期</span>
                                               <select name="" id="" ng-model="gutype"  class="form-control" style="width:120px">
                                                  <option value="">未选择</option>
                                                  <option value="1">景区</option>
                                                  <option value="2">酒店</option>              
                                              </select>
                                      </div>
                                </div>
                                <div class="col-sm-2">
                                     <button class="btn m-b-xs w-xs btn-success btn-rounded pull-right" ng-click="pageChanged()">搜索</button>
                                </div>
                          </div>
                      

                        <div class="panel-body">
                                  <table class="table table-striped table-bordered ng-isolate-scope dataTable no-footer" 
                                    style="display: table; width: 100%;table-layout:fixed;">
                                    <thead>
                                      <tr>                         
                                        <th style="width: 20%;text-align:center;">风险点名称</th>  
                                          <th style="width: 10%;text-align:center;">上次检验日期</th>
                                          <th style="width: 10%;text-align:center;">下次检验日期</th>
                                            <th style="width: 8%;text-align:center;">检验周期</th>
                                        <th style="width: 10%;text-align:center;">风险点负责人</th>
                                         <th style="width: 10%;text-align:center;">负责人电话</th>
                                          <th style="width: 12%;text-align:center;">已发短信提醒次数</th>
                                         <th style="width: 12%;text-align:center;">下次短信提醒日期</th>
                                       
                       
                                        <th style="width: 8%;text-align:center;">维护状态</th>
                                      </tr>
                                    </thead>
                                    <tbody>
                                      <tr ng-repeat="obj in user.ticketarr">                
                                         <td >{{obj.gename}}</td>   
                                        <td >{{obj.geinspection_data}}</td>
                                        <td >{{}}</td>
                                         <td >{{obj.gemaintenance_cycle}}天</td>   
                                         <td >{{obj.grpname}}</td>
                                        <td >{{obj.grpmobile}}</td>
                                        <td ></td>
                                        <td ></td>
                                       
                                                    
                                        <td style="text-align:center;">
                                        
                                           正常
                                        </td>
                                      </tr>
                                    </tbody>
                                 </table>
                         </div>
     
                        <div class="text-right" style="background-color: white">
                            <pagination 
                                total-items="totalItems" 
                                ng-model="currentPage" 

                                ng-change="pageChanged()"
                                previous-text="上一页"
                                next-text="下一页"
                                first-text="首页"
                                last-text="尾页"
                                max-size="5"
                                boundary-links="true"
                                rotate="false"

                                items-per-page="itemsPerPage"
                                class="m-t-none m-b"></pagination>
                      </div>
                </div>
  
           </div>
       </div>
    </div>
</div>
</div>


